<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>添加用户</title>
</head>
<body>
<div th:text="test">
</div>
<div th:text="${msg}">
</div>
<p th:text="${#dates.format(new java.util.Date().getTime(), 'yyyy-MM-dd HH:mm:ss')}">time</p>

<form th:action="@{/user/edit}" method="post">
    <input type="hidden" name="id" th:field="${user.id}"/>
    用户名：<input type="text" name="username" th:field="${user.username}"/><span color="red" th:errors="${user.username}"></span><br/>
    年龄：<input type="text" name="age" th:field="${user.age}"/><br/>
    <input type="submit" value="确定"/><br/>


</form>
</body>